package com.project.study.farming.base.entity.dto;

import com.project.study.farming.common.utils.CommonUtil;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 用户主页
 * @since 2020-04-27
 */
@Data
public class MainPageDto {

    private Integer id;

    private String name;

    private String image;

    private String remark;

    private String createTime;

    private String createBy;

    private String count;

    private Integer areaId;

    private List<CropAreaDto> list;

    public void setCreateTime(LocalDateTime time){
        this.createTime = CommonUtil.formatLocalDateTime(time);
    }
}
